import request from '@/utils/request'

export default {
  handbackList(params) {
    return request({
      url: '/v1/toolHandbackList',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/toolHandback/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/toolHandbackUpdate',
      method: 'post',
      data
    })
  },
  create(data) {
    return request({
      url: '/v1/toolHandbackAdd',
      method: 'post',
      data
    })
  },
  archives(id) {
    return request({
      url: `/v1/toolHandbackArchive/${id}`,
      method: 'get'
    })
  },
  delete(id) {
    return request({
      url: `/v1/toolHandbackDel/${id}`,
      method: 'get'
    })
  },
  append(data) {
    return request({
      url: '/v1/toolHandbackAppend',
      method: 'post',
      data
    })
  },
  remove(data) {
    return request({
      url: '/v1/toolHandbackRemove',
      method: 'post',
      data
    })
  },
  getAppear(id) {
    return request({
      url: `/v1/ToolAppear/${id}`,
      method: 'get'
    })
  },
  review(data) {
    return request({
      url: '/v1/ToolHandBackReview',
      method: 'post',
      data
    })
  },
  appendAll(data) {
    return request({
      url: '/v1/handbackAppendAllAppear',
      method: 'post',
      data
    })
  }
}
